﻿@model IEnumerable<AuditModel.sp_GetArchiveScores_Result>

@{
    ViewBag.Title = "Details";
    Layout = "~/Views/Shared/SubjectAdmin/_SubjectAdminLayout.cshtml";
    AuditModel.Archive archive = (AuditModel.Archive)ViewBag.Archive;
    var grid = new WebGrid(Model,canSort:false);
}

<h2>@archive.ID<text>得分情况</text></h2>

@Html.Partial("_ArchiveDetailsSimple",archive)

@grid.GetHtml(
        columns: grid.Columns(
                        grid.Column("ExpertJudgeSerialNumber", AuditResources.ExpertJudge.SerialNumber),
                        grid.Column("RealName", AuditResources.ExpertJudge.RealName),
                        grid.Column("MaterialScore", AuditResources.Score.MaterialScore),
                        grid.Column("InstructionScore", AuditResources.Score.InstructionScore),
                            grid.Column("DefenseScore", AuditResources.Score.DefenseScore),
                                grid.Column("OtherScore", AuditResources.Score.OtherScore),
                                grid.Column(string.Empty, "总分",format:@<text>@(item.MaterialScore + item.InstructionScore + item.DefenseScore + item.OtherScore)</text>),
                                grid.Column("Date", AuditResources.Score.SubmitTime),
            grid.Column("UserId", string.Empty, format:@<text>@Html.ActionLink(AuditResources.UI.Details, "SingleScoreDetails", new { id = item.ArchiveID, serialnumber=item.ExpertJudgeSerialNumber }, new { @class = "button" }) | @Html.ActionLink(AuditResources.UI.Delete, "DeleteScores", new { archiveid = item.ArchiveID, serialnumber = item.ExpertJudgeSerialNumber }, new { @class = "button", onclick="return confirm('确认删除吗？')" })</text>)
                        ))

<p>@Html.ActionLink(@AuditResources.UI.BackToList, "Scores", null, new { Class = "button" })</p>


